﻿<?xml version="1.0" encoding="utf-8" ?>
<workflow id="8">
  <start>888</start>
  <step id="888" type="1">
    <name>抄送</name>
    <task>103</task>
    <next>800</next>
  </step>
  <step id="800" type="2">
    <next>
      <condition><![CDATA[select check_userrole(@createUserId,4);]]></condition>
      <true>801</true>
      <false>802</false>
    </next>
  </step>
  <step id="801" type="1">
    <name>部门经理审批</name>
    <task>1</task>
    <next>802</next>
  </step>
  <step id="802" type="1">
    <name>主管副总审批</name>
    <task>2</task>
    <next>803</next>
  </step>
  <step id="803" type="1">
    <name>总经理审批</name>
    <task>4</task>
    <next>804</next>
  </step>
  <step id="804" type="2">
    <next>
      <condition>
        <![CDATA[
      select check_form_data_where(@flowObjectId, @dataId, 8004, ' >= 100000');
      ]]>
      </condition>
      <true>805</true>
      <false>807</false>
    </next>
  </step>
  <step id="805" type="1">
    <name>副董事长审批</name>
    <task>7</task>
    <next>806</next>
  </step>
  <step id="806" type="1">
    <name>董事长审批</name>
    <task>8</task>
    <next>807</next>
  </step>
  <step id="807" type="2">
    <next>
      <condition>
        <![CDATA[
      select check_form_data_where(@flowObjectId, @dataId, 8002, ' = 12');
      ]]></condition>
      <true>808</true>
    </next>
    <remark>检查是否为出差申请</remark>
  </step>
  <step id="808" type="1">
    <name>抄送</name>
    <task>104</task>
  </step>
</workflow>